package com.linkhub.oms.dao.mpservice.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.linkhub.oms.dao.mapper.ShippingLogisticsMappingEntityMapper;
import com.linkhub.oms.dao.mpservice.IShippingLogisticsMappingService;
import com.linkhub.oms.entity.ShippingLogisticsMappingEntity;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: ShippingLogisticsMappingServiceImpl
 * @Author: echo
 * @Date: 2024/5/25 11:38
 * @Version: 1.0
 */
@Slf4j
@Service
public class ShippingLogisticsMappingServiceImpl extends ServiceImpl<ShippingLogisticsMappingEntityMapper, ShippingLogisticsMappingEntity> implements IShippingLogisticsMappingService {
    @Override
    public List<ShippingLogisticsMappingEntity> listShippingChannels(String sysShopId, String shippingName) {
        return super.lambdaQuery()
                .eq(ShippingLogisticsMappingEntity::getSysShopId, sysShopId)
                .eq(ShippingLogisticsMappingEntity::getShippingName, shippingName)
                .orderByAsc(ShippingLogisticsMappingEntity::getRanked)
                .list();
    }

}
